<?php

/**
 * Get valid URL for current router
 *
 */
class Rapide_View_Helper_Url extends Rapide_View_Helper
{
	/**
	 * Get valid URL for current router
	 *
	 * @param string $sController
	 * @param string $sAction
	 * @param array $aParameters
	 * @param bool $bSSL
	 * @return string valid URL for current router
	 */
	public function execute($sController = null, $sAction = null, array $aParameters = array(), $bSSL = null)
	{
		return Rapide_Controller_Front::getInstance()
					 ->getRouter()
					 ->url($sController, $sAction, $aParameters, $bSSL);
	}
}

?>